import{d as c,p as d,k as m,O as r,q as g,bG as v,b as V,o as h,x as y}from"./CtbHscGXagutd.js";const f=["type"],b=c({__name:"app-input-string",props:{modelValue:{},type:{}},emits:["update:modelValue","change","action"],setup(n,{emit:u}){const o=n,t=u,p=d("app-input-string",globalThis.debugUI??!1),e=m(o.modelValue??"");function l(){t("update:modelValue",e.value),t("change",e.value),t("action",e.value)}return r(()=>o.modelValue,a=>{p("did change value",a),e.value=a??""}),(a,s)=>g((h(),V("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>e.value=i),type:n.type??"text",class:"oui-input",onBlur:l,onKeypress:y(l,["enter"])},null,40,f)),[[v,e.value]])}});export{b as _};